import api from "../../utils/request.js";
import {API1_URL} from '../../utils/baseURL.js'

export const postUserRegister = async (data) => {
    const response = await api({
        url: API1_URL + "/user/register",
        method: 'post',
        data
    });
    return response.data;
};

export const getUserRegisterCapcha = async (params) => {
    const response = await api({
        url: API1_URL + '/user/register-captcha',
        method: 'get',
        params
    });
    return response.data;
};